﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Parser
{
    [AttributeUsage(AttributeTargets.Method, Inherited = true)]
    public class ParserFunctionAttribute : Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ParserFunctionAttribute"/> class.
        /// </summary>
        public ParserFunctionAttribute()
            : this(string.Empty, string.Empty)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ParserFunctionAttribute"/> class.
        /// </summary>
        /// <param name="namespaces">名字空间.</param>
        /// <param name="assemblys">DLL.</param>
        public ParserFunctionAttribute(string namespaces, string assemblys)
        {
            this.Namespaces = namespaces;
            this.Assemblys = assemblys;
        }

        /// <summary>
        /// Gets or sets 名字空间.
        /// </summary>
        public string Namespaces { get; set; }

        /// <summary>
        /// Gets or sets dLL.
        /// </summary>
        public string Assemblys { get; set; }
    }
}
